package chixing.day08.homework;

public class MySavingsAccount extends BankAccount{
    public MySavingsAccount() {
    }

    public MySavingsAccount(String accountNumber, double balance) {
        super(accountNumber, balance);
    }

    @Override
    public void monthlyUpdate() {
        this.setBalance(this.getBalance() + this.getBalance() * 0.02);
    }
}
